package cn.tedu.baking.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Author：毕龙
 * Date: 2024/8/16 15:55
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ContentDetailVO {
    //内容相关
    private Integer id;
    private String title;
    private String imgUrl;
    private String videoUrl;
    private Integer type;
    private Integer createBy;//创建文章作者的id
    @JsonFormat(pattern = "yyyy/MM/dd hh:mm:ss")
    private Date createTime;
    private Integer viewCount;
    private String brief;
    private String content;
    //作者相关
    private String userImgUrl;
    private String nickname;
    @JsonFormat(pattern = "yyyy/MM/dd hh:mm:ss")
    private Date userCreateTime;

}
